package com.erp.erp_project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erp.erp_project.model.Role;
import com.erp.erp_project.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yh
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    void updatarole(Role role);
    void updatarp(@Param("ids") String ids, @Param("roleId") Integer roleId);
    void add(User user);
    void deleteur(List userIds);
    void updataur(User user);
    List<Integer> requery(@Param("condition") String condition);
    List<Integer> queryur(List<Integer> roleIds);
    List<Integer> queryadmin();
    Role updateselect(String roleName);
    void delete(List ids);
    Integer selectru(Integer roleId);
    List<Role> requeryrole(String rolefield,String condition);
}
